/**
 *  IntegerConstantLocation.java : IceBird project
 *  17:29:05 
 */
package icebird.compiler.ncomp.vs;

import icebird.metadata.BasicType;

/**
 * @author Sergey Shulepoff[Knott]
 */
public final class IntegerConstantLocation extends ConstLocation {
	
	private int value;

	/**
	 * @param dta
	 */
	public IntegerConstantLocation(int v) {
		super("int(" + v + ")");
		
		value = v;
	}
	
	/**
	 * Gets constant value.
	 * @return int
	 */
	public int getValue() {
		return value;
	}

	/* (non-Javadoc)
	 * @see icebird.compiler.ncomp.vs.ConstLocation#getType()
	 */
	public BasicType getType() {
		return BasicType.Int;
	}
}
